package rest;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class Analyzer {

    @JsonProperty("tokens")
    private List<TokensDTO> tokens;

    @NoArgsConstructor
    @Data
    public static class TokensDTO {
        @JsonProperty("token")
        private String token;
        @JsonProperty("start_offset")
        private Integer startOffset;
        @JsonProperty("end_offset")
        private Integer endOffset;
        @JsonProperty("type")
        private String type;
        @JsonProperty("position")
        private Integer position;
    }
}
